﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020013E9 RID: 5097
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyGameGrid : IMessage<TrainPartyGameGrid>, IMessage, IEquatable<TrainPartyGameGrid>, IDeepCloneable<TrainPartyGameGrid>, IBufferMessage
	{
		// Token: 0x17004040 RID: 16448
		// (get) Token: 0x0600E435 RID: 58421 RVA: 0x0026207D File Offset: 0x0026027D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyGameGrid> Parser
		{
			get
			{
				return TrainPartyGameGrid._parser;
			}
		}

		// Token: 0x17004041 RID: 16449
		// (get) Token: 0x0600E436 RID: 58422 RVA: 0x00262084 File Offset: 0x00260284
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyGameGridReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004042 RID: 16450
		// (get) Token: 0x0600E437 RID: 58423 RVA: 0x00262096 File Offset: 0x00260296
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyGameGrid.Descriptor;
			}
		}

		// Token: 0x0600E438 RID: 58424 RVA: 0x0026209D File Offset: 0x0026029D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameGrid()
		{
		}

		// Token: 0x0600E439 RID: 58425 RVA: 0x002620A8 File Offset: 0x002602A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameGrid(TrainPartyGameGrid other) : this()
		{
			this.gAEIOFOPLFN_ = other.gAEIOFOPLFN_;
			this.gridId_ = other.gridId_;
			this.displayValue_ = other.displayValue_;
			this.uniqueId_ = other.uniqueId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E43A RID: 58426 RVA: 0x002620FC File Offset: 0x002602FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyGameGrid Clone()
		{
			return new TrainPartyGameGrid(this);
		}

		// Token: 0x17004043 RID: 16451
		// (get) Token: 0x0600E43B RID: 58427 RVA: 0x00262104 File Offset: 0x00260304
		// (set) Token: 0x0600E43C RID: 58428 RVA: 0x0026210C File Offset: 0x0026030C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GAEIOFOPLFN
		{
			get
			{
				return this.gAEIOFOPLFN_;
			}
			set
			{
				this.gAEIOFOPLFN_ = value;
			}
		}

		// Token: 0x17004044 RID: 16452
		// (get) Token: 0x0600E43D RID: 58429 RVA: 0x00262115 File Offset: 0x00260315
		// (set) Token: 0x0600E43E RID: 58430 RVA: 0x0026211D File Offset: 0x0026031D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GridId
		{
			get
			{
				return this.gridId_;
			}
			set
			{
				this.gridId_ = value;
			}
		}

		// Token: 0x17004045 RID: 16453
		// (get) Token: 0x0600E43F RID: 58431 RVA: 0x00262126 File Offset: 0x00260326
		// (set) Token: 0x0600E440 RID: 58432 RVA: 0x0026212E File Offset: 0x0026032E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DisplayValue
		{
			get
			{
				return this.displayValue_;
			}
			set
			{
				this.displayValue_ = value;
			}
		}

		// Token: 0x17004046 RID: 16454
		// (get) Token: 0x0600E441 RID: 58433 RVA: 0x00262137 File Offset: 0x00260337
		// (set) Token: 0x0600E442 RID: 58434 RVA: 0x0026213F File Offset: 0x0026033F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UniqueId
		{
			get
			{
				return this.uniqueId_;
			}
			set
			{
				this.uniqueId_ = value;
			}
		}

		// Token: 0x0600E443 RID: 58435 RVA: 0x00262148 File Offset: 0x00260348
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyGameGrid);
		}

		// Token: 0x0600E444 RID: 58436 RVA: 0x00262158 File Offset: 0x00260358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyGameGrid other)
		{
			return other != null && (other == this || (this.GAEIOFOPLFN == other.GAEIOFOPLFN && this.GridId == other.GridId && this.DisplayValue == other.DisplayValue && this.UniqueId == other.UniqueId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E445 RID: 58437 RVA: 0x002621C4 File Offset: 0x002603C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GAEIOFOPLFN != 0U)
			{
				num ^= this.GAEIOFOPLFN.GetHashCode();
			}
			if (this.GridId != 0U)
			{
				num ^= this.GridId.GetHashCode();
			}
			if (this.DisplayValue != 0U)
			{
				num ^= this.DisplayValue.GetHashCode();
			}
			if (this.UniqueId != 0U)
			{
				num ^= this.UniqueId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E446 RID: 58438 RVA: 0x0026224E File Offset: 0x0026044E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E447 RID: 58439 RVA: 0x00262256 File Offset: 0x00260456
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E448 RID: 58440 RVA: 0x00262260 File Offset: 0x00260460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.GridId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.GridId);
			}
			if (this.GAEIOFOPLFN != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.GAEIOFOPLFN);
			}
			if (this.DisplayValue != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.DisplayValue);
			}
			if (this.UniqueId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.UniqueId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E449 RID: 58441 RVA: 0x002622F4 File Offset: 0x002604F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GAEIOFOPLFN != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GAEIOFOPLFN);
			}
			if (this.GridId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GridId);
			}
			if (this.DisplayValue != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DisplayValue);
			}
			if (this.UniqueId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UniqueId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E44A RID: 58442 RVA: 0x0026237C File Offset: 0x0026057C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyGameGrid other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GAEIOFOPLFN != 0U)
			{
				this.GAEIOFOPLFN = other.GAEIOFOPLFN;
			}
			if (other.GridId != 0U)
			{
				this.GridId = other.GridId;
			}
			if (other.DisplayValue != 0U)
			{
				this.DisplayValue = other.DisplayValue;
			}
			if (other.UniqueId != 0U)
			{
				this.UniqueId = other.UniqueId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E44B RID: 58443 RVA: 0x002623F4 File Offset: 0x002605F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E44C RID: 58444 RVA: 0x00262400 File Offset: 0x00260600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 16U)
					{
						this.GridId = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.GAEIOFOPLFN = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.DisplayValue = input.ReadUInt32();
						continue;
					}
					if (num == 88U)
					{
						this.UniqueId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005A49 RID: 23113
		private static readonly MessageParser<TrainPartyGameGrid> _parser = new MessageParser<TrainPartyGameGrid>(() => new TrainPartyGameGrid());

		// Token: 0x04005A4A RID: 23114
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005A4B RID: 23115
		public const int GAEIOFOPLFNFieldNumber = 6;

		// Token: 0x04005A4C RID: 23116
		private uint gAEIOFOPLFN_;

		// Token: 0x04005A4D RID: 23117
		public const int GridIdFieldNumber = 2;

		// Token: 0x04005A4E RID: 23118
		private uint gridId_;

		// Token: 0x04005A4F RID: 23119
		public const int DisplayValueFieldNumber = 8;

		// Token: 0x04005A50 RID: 23120
		private uint displayValue_;

		// Token: 0x04005A51 RID: 23121
		public const int UniqueIdFieldNumber = 11;

		// Token: 0x04005A52 RID: 23122
		private uint uniqueId_;
	}
}
